import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ManageCollections from "@/views/ManageCollections.vue";
import loginView from "@/views/LoginView";
import registerView from "@/views/RegisterView";
import ManageNav from "@/views/ManageNav.vue";
import ManageNavBg from "@/views/ManageNavBg.vue";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },{
    path: '/login',
    name: 'login',
    component: loginView
  },{
    path: '/register',
    name: 'register',
    component: registerView
  },{
    path: '/managecollections',
    name: 'managecollections',
    component: ManageCollections
  },{
    path: "/admin",
    name: "addNav",
    component: ManageNav
  },{
    path: "/navbg",
    name: "navbg",
    component: ManageNavBg
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
